package com.party.alipay;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @author Caizhf
 * @date 2017年8月12日下午3:58:54
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: 支付宝退款传输对象</p>
 * 
 * 
 *
 */
/*
 * "alipay_trade_refund_response": {
        "code": "10000",
        "msg": "Success",
        "buyer_logon_id": "187****1360",
        "buyer_user_id": "2088812217546192",
        "fund_change": "Y",
        "gmt_refund_pay": "2017-08-12 15:27:20",
        "open_id": "20880035363405857944929551913419",
        "out_trade_no": "58664150226572662237046",
        "refund_fee": "0.01",
        "send_back_fee": "0.00",
        "trade_no": "2017080921001004190238994117"
    },
 */
public class AlipayRefundDTO {
	private String code;			//支付宝状态返回码
	private String msg;				//返回码错误描述
	private String sub_code;		//明细返回码
	private String sub_msg;			//明细返回码描述
	private String buyer_logon_id;	//退款支付宝号码
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date gmt_refund_pay;	//退款时间
	private String out_trade_no;	//本站订单号
	private String trade_no;		//支付宝单号
	private Double refund_fee;		//实际退款金额
	private String refund_reason;	//退款原因
	
	
	public String getSub_code() {
		return sub_code;
	}
	public void setSub_code(String sub_code) {
		this.sub_code = sub_code;
	}
	public String getSub_msg() {
		return sub_msg;
	}
	public void setSub_msg(String sub_msg) {
		this.sub_msg = sub_msg;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getRefund_reason() {
		return refund_reason;
	}
	public void setRefund_reason(String refund_reason) {
		this.refund_reason = refund_reason;
	}
	public String getBuyer_logon_id() {
		return buyer_logon_id;
	}
	public void setBuyer_logon_id(String buyer_logon_id) {
		this.buyer_logon_id = buyer_logon_id;
	}
	public Date getGmt_refund_pay() {
		return gmt_refund_pay;
	}
	public void setGmt_refund_pay(Date gmt_refund_pay) {
		this.gmt_refund_pay = gmt_refund_pay;
	}
	public String getOut_trade_no() {
		return out_trade_no;
	}
	public void setOut_trade_no(String out_trade_no) {
		this.out_trade_no = out_trade_no;
	}
	public String getTrade_no() {
		return trade_no;
	}
	public void setTrade_no(String trade_no) {
		this.trade_no = trade_no;
	}
	public Double getRefund_fee() {
		return refund_fee;
	}
	public void setRefund_fee(Double refund_fee) {
		this.refund_fee = refund_fee;
	}
	@Override
	public String toString() {
		return "AlipayRefundDTO [buyer_logon_id=" + buyer_logon_id + ", gmt_refund_pay=" + gmt_refund_pay
				+ ", out_trade_no=" + out_trade_no + ", trade_no=" + trade_no + ", refund_fee=" + refund_fee
				+ ", refund_reason=" + refund_reason + "]";
	}
	
	
}
